<?php
class UserGetMoneyAction extends SzAbstractAction
{
    protected $paramTypes = array(
        SzAbstractAction::TYPE_INT
    );

    /**
     * 获取用户真实游戏币
     *
     * @param int $userId
     * @return SzResponse
     */
    public function execute($userId)
    {
        return $this->buildResponse(
            PlatformService::getPlatformInstanceByUserId($userId)->getMoney($userId)
        );
    }
}